/**
 *
 */
package com.lingyun.ucm.web.mvc.controller;

import com.lingyun.ucm.web.mvc.service.ConfigAcquireFailLogService;
import com.lingyun.ucm.web.mvc.service.impl.ConfigAcquireFailLogServiceImpl;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 
 * @author Terrence2013
 * 2018年1月24日 上午9:52:27
 * 异常消息通知列表Servlet
 */
public class NoticesServlet extends HttpServlet {

    /**
     *
     */
    private static final long serialVersionUID = 1294190096098205554L;

    private ConfigAcquireFailLogService configAcquireFailLogService = new ConfigAcquireFailLogServiceImpl();

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) {
        try {
            req.setCharacterEncoding("UTF-8");
            resp.setContentType("text/html;charset=utf-8");
            req.setAttribute("configAcquireFailLogList", configAcquireFailLogService.listAll());
            req.getRequestDispatcher("/WEB-INF/pages/notices.jsp").forward(req, resp);
        } catch (Exception e) {
            //异常不处理
        }
    }
}
